package org.sky.algorithm.linear;

/**
 * 循环列表测试类
 *
 * @author fog
 * @date 2021/9/5
 */

public class LoopNodeTest {

    public static void main(String[] args) {

        LoopNode n1 = new LoopNode(1);
        LoopNode n2 = new LoopNode(2);
        LoopNode n3 = new LoopNode(3);

        n1.addNode(n2);

        System.out.println(n1.next().getData());
        System.out.println(n2.next().getData());
    }

}
